StupidBeauty
Read times:759Posted at:Fri Oct 18 20:40:41 2013
- no title specified

转载:got error "pocketsphinx.h:no such file" when using command "ndk-build -B" in "Building Pocketsphinx On Android"

在试用pocketsphinx的安卓版示例代码时,如果妳遇到错误说无法解析 edu.cmu.pocketsphinx.Config ,则说明妳的安卓项目中缺少了用于封装 pocketsphinx JNI接口的Java类文件。这些文件本来是由swig来生成的,而现在却没能成功生成 。解决方法就是自己手动生成一下并且放置到正确的位置

http://sourceforge.net/p/cmusphinx/discussion/help/thread/8369b305/

亮点:

i got a strange issue

    • import edu.cmu.pocketsphinx.Config;
      import edu.cmu.pocketsphinx.Decoder;
      import edu.cmu.pocketsphinx.Hypothesis;
      import edu.cmu.pocketsphinx.pocketsphinx;

      cannot be resolved

      libpocketsphinx_jni.so is in obj/local/armeabi and libs/armeabi

      what am i missing ???

      Link

      • •.

  • •. rompelstilchen2rompelstilchen2
    rompelstilchen2
    2012-12-18

    anyone can help me with this ?
    i got a .so but no jar to include in the eclipse project

    Link

    • •.

  • •. Nickolay V. ShmyrevNickolay V. Shmyrev
    Nickolay V. Shmyrev
    2012-12-18

    libpocketsphinx_jni.so is in obj/local/armeabi and libs/armeabi

    There is nothing strange

    This issue is not related to JNI. It says that the java files for the corresponding classes are missing. Those files must be present in jni/edu/cmu/pocketsphinx, there should be files like Config.java and so on.

    If the files are present, you need to add them to a project build path. If files are missing you have the issues with swig. Swig must create them.

    anyone can help me with this ?

    Please be patient and follow the instructions precisely and it will work.

  • •.

未知美人

未知美人

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4